package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-06-21 14:03:21.466
 */
@Entity
@Table(name = "INS_WF_NODE",catalog = "wfdb")
public class InsWfNode implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "INS_WF_NODE";

    /**流程节点实例编号 */
	public static final String ALIAS_INS_NODE_ID = "INS_NODE_ID";
    /**流程实例编号 */
	public static final String ALIAS_INS_FLOW_ID = "INS_FLOW_ID";
    /**上一节点流程实例编号 */
	public static final String ALIAS_PRE_INS_NODE_ID = "PRE_INS_NODE_ID";
    /**节点编号 */
	public static final String ALIAS_NODE_ID = "NODE_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /** */
	public static final String ALIAS_FLOW_NAME = "FLOW_NAME";
    /** */
	public static final String ALIAS_FLOW_DESC = "FLOW_DESC";
    /**节点名称 */
	public static final String ALIAS_NODE_NAME = "NODE_NAME";
    /**节点类型 */
	public static final String ALIAS_NODE_TYPE = "NODE_TYPE";
    /**节点状态： 1 处理中 2 完成 -1 异常 */
	public static final String ALIAS_NODE_STATE = "NODE_STATE";
    /**回复结果：同意/不同意 */
	public static final String ALIAS_REPLY_RESULT = "REPLY_RESULT";
    /**回复备注 */
	public static final String ALIAS_REPLY_NOTE = "REPLY_NOTE";
    /** */
	public static final String ALIAS_STATE = "STATE";
    /**可处理人编号 */
	public static final String ALIAS_UID = "UID";
    /**可处理角色编号 */
	public static final String ALIAS_ROLE_ID = "ROLE_ID";
    /**可处理组织编号 */
	public static final String ALIAS_ORG_ID = "ORG_ID";
    /**可处理组织编码 */
	public static final String ALIAS_ORG_CODE = "ORG_CODE";
    /**完成期限 */
	public static final String ALIAS_DEADLINE = "DEADLINE";
    /** */
	public static final String ALIAS_CREATE_UID = "CREATE_UID";
    /** */
	public static final String ALIAS_CREATE_UNAME = "CREATE_UNAME";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
    /** */
	public static final String ALIAS_PARTY_ID = "PARTY_ID";
    /**代理人编号 */
	public static final String ALIAS_AGENT_UID = "AGENT_UID";
    /**处理人 */
	public static final String ALIAS_DEAL_UID = "DEAL_UID";
    /** */
	public static final String ALIAS_DEAL_UNAME = "DEAL_UNAME";
    /** */
	public static final String ALIAS_DEAL_TIME = "DEAL_TIME";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "INS_NODE_ID", unique = true, nullable = false)
    public java.lang.Long insNodeId;
  
 	@Column(name = "INS_FLOW_ID")
    public java.lang.Long insFlowId;
  
 	@Column(name = "PRE_INS_NODE_ID")
    public java.lang.Long preInsNodeId;
  
	@Column(name = "NODE_ID")
    public java.lang.Long nodeId;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "FLOW_NAME")
    public java.lang.String flowName;
  
 	@Column(name = "FLOW_DESC")
    public java.lang.String flowDesc;
  
 	@Column(name = "NODE_NAME")
    public java.lang.String nodeName;
  
 	@Column(name = "NODE_TYPE")
    public java.lang.String nodeType;
  
 	@Column(name = "NODE_STATE")
    public java.lang.Long nodeState;
  
 	@Column(name = "REPLY_RESULT")
    public java.lang.String replyResult;
  
 	@Column(name = "REPLY_NOTE")
    public java.lang.String replyNote;
  
 	@Column(name = "STATE")
    public java.lang.Long state;
  
 	@Column(name = "UID")
    public java.lang.Long uid;
  
 	@Column(name = "ROLE_ID")
    public java.lang.Long roleId;
  
 	@Column(name = "ORG_ID")
    public java.lang.Long orgId;
  
 	@Column(name = "ORG_CODE")
    public java.lang.String orgCode;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DEADLINE")
    public java.util.Date deadline;
  
 	@Column(name = "CREATE_UID")
    public java.lang.Long createUid;
  
 	@Column(name = "CREATE_UNAME")
    public java.lang.String createUname;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  
 	@Column(name = "PARTY_ID")
    public java.lang.Long partyId;
  
 	@Column(name = "AGENT_UID")
    public java.lang.Long agentUid;
  
 	@Column(name = "DEAL_UID")
    public java.lang.Long dealUid;
  
 	@Column(name = "DEAL_UNAME")
    public java.lang.String dealUname;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DEAL_TIME")
    public java.util.Date dealTime;
  





	public java.lang.Long getInsNodeId() {
		return this.insNodeId;
	}
	
	public void setInsNodeId(java.lang.Long value) {
		this.insNodeId = value;
	}

	public java.lang.Long getInsFlowId() {
		return this.insFlowId;
	}
	
	public void setInsFlowId(java.lang.Long value) {
		this.insFlowId = value;
	}

	public java.lang.Long getPreInsNodeId() {
		return this.preInsNodeId;
	}
	
	public void setPreInsNodeId(java.lang.Long value) {
		this.preInsNodeId = value;
	}

	public java.lang.Long getNodeId() {
		return this.nodeId;
	}
	
	public void setNodeId(java.lang.Long value) {
		this.nodeId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getFlowName() {
		return this.flowName;
	}
	
	public void setFlowName(java.lang.String value) {
		this.flowName = value;
	}

	public java.lang.String getFlowDesc() {
		return this.flowDesc;
	}
	
	public void setFlowDesc(java.lang.String value) {
		this.flowDesc = value;
	}

	public java.lang.String getNodeName() {
		return this.nodeName;
	}
	
	public void setNodeName(java.lang.String value) {
		this.nodeName = value;
	}

	public java.lang.String getNodeType() {
		return this.nodeType;
	}
	
	public void setNodeType(java.lang.String value) {
		this.nodeType = value;
	}

	public java.lang.Long getNodeState() {
		return this.nodeState;
	}
	
	public void setNodeState(java.lang.Long value) {
		this.nodeState = value;
	}

	public java.lang.String getReplyResult() {
		return this.replyResult;
	}
	
	public void setReplyResult(java.lang.String value) {
		this.replyResult = value;
	}

	public java.lang.String getReplyNote() {
		return this.replyNote;
	}
	
	public void setReplyNote(java.lang.String value) {
		this.replyNote = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.Long getRoleId() {
		return this.roleId;
	}
	
	public void setRoleId(java.lang.Long value) {
		this.roleId = value;
	}

	public java.lang.Long getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(java.lang.Long value) {
		this.orgId = value;
	}

	public java.lang.String getOrgCode() {
		return this.orgCode;
	}
	
	public void setOrgCode(java.lang.String value) {
		this.orgCode = value;
	}

	public java.util.Date getDeadline() {
		return this.deadline;
	}
	
	public void setDeadline(java.util.Date value) {
		this.deadline = value;
	}

	public java.lang.Long getCreateUid() {
		return this.createUid;
	}
	
	public void setCreateUid(java.lang.Long value) {
		this.createUid = value;
	}

	public java.lang.String getCreateUname() {
		return this.createUname;
	}
	
	public void setCreateUname(java.lang.String value) {
		this.createUname = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.Long getAgentUid() {
		return this.agentUid;
	}
	
	public void setAgentUid(java.lang.Long value) {
		this.agentUid = value;
	}

	public java.lang.Long getDealUid() {
		return this.dealUid;
	}
	
	public void setDealUid(java.lang.Long value) {
		this.dealUid = value;
	}

	public java.lang.String getDealUname() {
		return this.dealUname;
	}
	
	public void setDealUname(java.lang.String value) {
		this.dealUname = value;
	}

	public java.util.Date getDealTime() {
		return this.dealTime;
	}
	
	public void setDealTime(java.util.Date value) {
		this.dealTime = value;
	}


	
	public InsWfNode() {
	}
	
	public InsWfNode(boolean qryflag) {
	    if(qryflag){
	    		this.insNodeId = null;
				this.insFlowId = null;
				this.preInsNodeId = null;
				this.nodeId = null;
				this.flowId = null;
				this.flowName = null;
				this.flowDesc = null;
				this.nodeName = null;
				this.nodeType = null;
				this.nodeState = null;
				this.replyResult = null;
				this.replyNote = null;
				this.state = null;
				this.uid = null;
				this.roleId = null;
				this.orgId = null;
				this.orgCode = null;
				this.deadline = null;
				this.createUid = null;
				this.createUname = null;
				this.createTime = null;
				this.partyId = null;
				this.agentUid = null;
				this.dealUid = null;
				this.dealUname = null;
				this.dealTime = null;
			    }
	}


	public InsWfNode(
	    java.lang.Long inInsNodeId,
	    java.lang.Long inInsFlowId,
	    java.lang.Long inPreInsNodeId,
	    java.lang.Long inNodeId,
	    java.lang.Long inFlowId,
	    java.lang.String inFlowName,
	    java.lang.String inFlowDesc,
	    java.lang.String inNodeName,
	    java.lang.String inNodeType,
	    java.lang.Long inNodeState,
	    java.lang.String inReplyResult,
	    java.lang.String inReplyNote,
	    java.lang.Long inState,
	    java.lang.Long inUid,
	    java.lang.Long inRoleId,
	    java.lang.Long inOrgId,
	    java.lang.String inOrgCode,
	    java.util.Date inDeadline,
	    java.lang.Long inCreateUid,
	    java.lang.String inCreateUname,
	    java.util.Date inCreateTime,
	    java.lang.Long inPartyId,
	    java.lang.Long inAgentUid,
	    java.lang.Long inDealUid,
	    java.lang.String inDealUname,
		java.util.Date inDealTime
	 ) {
		super();
				this.insNodeId = inInsNodeId;
				this.insFlowId = inInsFlowId;
				this.preInsNodeId = inPreInsNodeId;
				this.nodeId = inNodeId;
				this.flowId = inFlowId;
				this.flowName = inFlowName;
				this.flowDesc = inFlowDesc;
				this.nodeName = inNodeName;
				this.nodeType = inNodeType;
				this.nodeState = inNodeState;
				this.replyResult = inReplyResult;
				this.replyNote = inReplyNote;
				this.state = inState;
				this.uid = inUid;
				this.roleId = inRoleId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
				this.deadline = inDeadline;
				this.createUid = inCreateUid;
				this.createUname = inCreateUname;
				this.createTime = inCreateTime;
				this.partyId = inPartyId;
				this.agentUid = inAgentUid;
				this.dealUid = inDealUid;
				this.dealUname = inDealUname;
				this.dealTime = inDealTime;
			}


    public String getTodoUsers() {
        return todoUsers;
    }

    public void setTodoUsers(String todoUsers) {
        this.todoUsers = todoUsers;
    }

    @Transient
    public java.lang.String todoUsers;


}

